/*
 * @Author: your name
 * @Date: 2020-12-17 10:27:29
 * @LastEditTime: 2021-01-06 12:56:25
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \tlwok-filing-saas-front\src\api\PO.js
 */
import Http from "@/lib/http";

export function page(page, size, data) {
  return Http.post(`/offline/list?pageNum=${page}&pageSize=${size}`, data);
}

export function batchConfirmShip(param) {
  return Http.post(`/offline/batchConfirmShip`, param);
}

export function batchConfirmReceipt(param) {
  return Http.post(`/offline/batchConfirmReceipt`, param);
}

export function cancelOrder(param) {
  return Http.post(`/offline/cancelOrder/` + param);
}

export function confirmOrder(param) {
  return Http.post(`/offline/confirmOrder/` + param);
}

export function confirmPayBack(param) {
  return Http.post(`/offline/confirmPayBack/` + param);
}

export function confirmShip(param) {
  return Http.post(`/offline/confirmShip`, param);
}

export function confirmReceipt(param) {
  return Http.post(`/offline/confirmReceipt`, param);
}

export function confirmInvoicing(param) {
  return Http.post(`/offline/confirmInvoicing`, param);
}

export function confirmPay(param) {
  return Http.post(`/offline/confirmPay`, param);
}

export function batchConfirmPay(param) {
  return Http.post(`/offline/batchConfirmPay`, param);
}

export function batchConfirmInvoiceing(param) {
  return Http.post(`/offline/batchConfirmInvoiceing`, param);
}

export function downloadExcel(param) {
  return Http.post(`/offline/downloadExcel`, param);
}

export function orderCount(param) {
  return Http.post(`/offline/orderCount`, param);
}

export function confirmShipGoodInfo(id) {
  return Http.post(`/offline/confirmShipGoodInfo/${id}`);
}

export function confirmReceiptGoodInfo(id) {
  return Http.post(`/offline/confirmReceiptGoodInfo/${id}`);
}

export function editOrder(param) {
  return Http.post(`/offline/editOrder`, param);
}

/**************** admin *****************/

export function pageAdmin(pageNum, pageSize, data) {
  return Http.post(
    `/manage/offline/list?pageNum=${pageNum}&pageSize=${pageSize}`,
    data
  );
}

export function orderCountAdmin(param) {
  return Http.post(`/manage/offline/orderCount`, param);
}
